
public class Teacher {
    private String name;
    private int age;
    private int time;
    private String address;
    
    public Teacher(String name,int age, int time, String address) {
    	this.setName(name);
    	this.setAge(age);
    	this.setTime(time);
    	this.setAddress(address);
    
}
    public void speak() {
    	
    }

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public int getTime() {
		return time;
	}

	public void setTime(int time) {
		this.time = time;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
    }
